package com.zhangxun.feign;

import com.zhangxun.domain.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("order-service")
public interface PayOrderFeign {
    @GetMapping("/loadById/{orderNo}")
    public Order loadById(@PathVariable("orderNo") String orderNo);
    @PostMapping("/p/myOrder/updateOrderStatus")
    void updateOrderStatus(@RequestBody String orderNo);
}
